class Test(list):
    def __init__(self):
        list.append(self, 1)
        self.a(2)
    def a(self, num):
        list.append(self, num)
    
aa = Test()
aa.a(3)
aa.append(4)
print aa